﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TurtleLib.ComputerCraft
{
  public partial class Modem : IPeripheral
  {
    /// <summary>
    /// Checks to see if channel is open
    /// </summary>
    /// <param name="channel">channel id</param>
    /// <returns>is open</returns>
    public bool isOpen(UInt16 channel)
    {
      throw new NotImplementedException();
    }

    /// <summary>
    /// Opens channel to allow for listening. The channel specified must be larger than 0 and less than 65535 (uint16 range)
    /// </summary>
    /// <param name="channel">channel to open</param>
    public void open(UInt16 channel)
    {
      throw new NotImplementedException();
    }

    /// <summary>
    /// Closes an open channel to stop listening
    /// </summary>
    /// <param name="channel">channel to close</param>
    public void close(UInt16 channel)
    {
      throw new NotImplementedException();
    }

    /// <summary>
    /// Closes all open channels
    /// </summary>
    public void closeAll()
    {
      throw new NotImplementedException();
    }

    /// <summary>
    /// Transmit a message of the specified channel. replyChannel indicates the receiver which channel should be used for response communication - but this is not enforced.
    /// </summary>
    /// <param name="channel">transmit channel</param>
    /// <param name="replyChannel">reply channel</param>
    /// <param name="message">transmission body</param>
    public void transmit(UInt16 channel, UInt16 replyChannel, string message)
    {
      throw new NotImplementedException();
    }

    /// <summary>
    /// Returns true if the modem is wireless, else false (wired)
    /// </summary>
    /// <returns>true if wireless</returns>
    public bool isWireless()
    {
      throw new NotImplementedException();
    }
  }
}
